package com.xuef.ibatis.executor;

import com.xuef.ibatis.mapping.MappedStatement;
import com.xuef.ibatis.session.Configuration;
import sun.plugin2.main.server.ResultHandler;

import java.sql.Connection;
import java.sql.SQLException;
import java.util.List;

/**
 * Created by xuefengDong: moveb
 * On 2019/4/26- 19:24
 * 简单执行器
 */
public class SimpleExecutor implements Executor {
    private Configuration configuration;
    //如果要控制事务的话，需要持有一个 Transaction
    private Connection connection;

    public SimpleExecutor(Configuration configuration, Connection connection){
        this.configuration = configuration;
        this.connection = connection;
    }
    public <E> List<E> query(MappedStatement ms,
                             Object parameter,
                             ResultHandler resultHandler) throws SQLException {
        return null;
    }
}
